package com.my.test.aop.impl;

import org.springframework.stereotype.Component;

import com.my.test.aop.Greeting;
import com.my.test.aop.annotation.Tag;

@Component
public class GreetingImpl implements Greeting {

	@Tag
    @Override
    public void sayHello(String name) {
        System.out.println("Hello! " + name);

        //throw new RuntimeException("Error"); // 故意抛出一个异常，看看异常信息能否被拦截到
    }
}